<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of User
 *
 * @author riemerb
 */
class User {
    private $alterskategorie,
            $id,
            $nickname,
            $ort,
            $strasse,
            $geschlecht,
            $initial_value,
            $isConfirmed,
            $nachname,
            $password,
            $vorname,
            $plz,
            $email,
            $newsletter;

    public function __construct($alterskategorie = null,
                                $id = null, 
                                $nickname = null,
                                $ort = null,
                                $strasse = null,
                                $geschlecht = null,
                                $initial_value = null,
                                $isConfirmed = false,
                                $nachname = null,
                                $password = null,
                                $vorname = null,
                                $plz = null,
                                $email = null,
                                $newsletter = null) 
    {
        $this->alterskategorie = $alterskategorie;
        $this->id = $id;
        $this->nickname = $nickname;
        $this->ort = $ort;
        $this->strasse = $strasse;
        $this->geschlecht = $geschlecht;
        $this->initial_value = $initial_value;
        $this->isConfirmed = $isConfirmed;
        $this->nachname = $nachname;
        $this->password = $password;
        $this->vorname = $vorname;
        $this->plz = $plz;
        $this->email = $email;
        $this->newsletter = $newsletter;
    }

    public function setAlterskategorie($alterskategorie){
        $this->alterskategorie = $alterskategorie;
    }
    public function setId($id){
        $this->id = $id;
    }
    public function setNickname($nickname){
        $this->nickname = $nickname;
    }
    public function setOrt($ort){
        $this->ort = $ort;
    }
    public function setStrasse($strasse){
        $this->strasse = $strasse;
    }
    public function setGeschlecht($geschlecht){
        $this->geschlecht = $geschlecht;
    }
    public function setInitValue($initValue){
        $this->init_value = $initValue;
    }
    public function setConfirmed($isConfirmed){
        $this->isConfirmed = $isConfirmed;
    }
    public function setNachname($nachname){
        $this->nachname = $nachname;
    }
    public function setPassword($password){
        $this->password = $password;
    }
    public function setVorname($vorname){
        $this->vorname = $vorname;
    }
    public function setPlz($plz){
        $this->plz = $plz;
    }
    public function setEmail($email){
        $this->email = $email;
    }
    public function setNewletter($newsletter){
        $this->newsletter;
    }

    public function getAlterskategorie(){
        return htmlentities($this->alterskategorie);
    }
    public function getId(){
        return $this->id;
    }
    public function getNickname(){
        return htmlentities($this->nickname);
    }
    public function getOrt(){
        return htmlentities($this->ort);
    }
    public function getStrasse(){
        return htmlentities($this->strasse);
    }
    public function getGeschlecht(){
        return htmlentities($this->geschlecht);
    }
    public function getInitialValue(){
        return $this->initial_value;
    }
    public function isConfirmed(){
        return $this->isConfirmed;
    }
    public function getNachname(){
        return htmlentities($this->nachname);
    }
    public function getPassword(){
        return $this->password;
    }
    public function getVorname(){
        return htmlentities($this->vorname);
    }
    public function getPlz(){
        return htmlentities($this->plz);
    }
    public function getEmail(){
        return htmlentities($this->email);
    }
    public function getNewsletter(){
        if ($this->newsletter == 1){
            return '1';
        } else {
            return '';
        }
    }    
}

?>
